Hi @everyone, I am Zohra and wanna contribute to ...
# contributing
z
Hi @everyone, I am Zohra and wanna contribute to SuperTokens I am trying to run the Supertokens-core manually After this command
./startTestEnv —wait or ./startTestingEnv —wait

 I am getting this error
Copy code
*Could not compile settings file '/Users/zohra/OpenSource/supertokens/supertokens-root/settings.gradle'.
> startup failed:
  General error during conversion: Unsupported class file major version 61
  
  java.lang.IllegalArgumentException: Unsupported class file major version 61
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:189)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:170)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:156)
        at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:277)
        at org.codehaus.groovy.ast.decompiled.AsmDecompiler.parseClass(AsmDecompiler.java:81)
        at org.codehaus.groovy.control.ClassNodeResolver.findDecompiled(ClassNodeResolver.java:251)
        at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScript(ClassNodeResolver.java:189)
*
Any help is appreciated Thanks
r
Hey @zohra3734 which version of Java are you using?
z
@rp_st I am using Java 15 which was provided in the contribution guideline but now I am getting this error
Copy code
Project 'supertokens-core' not found in root project 'supertokens-root'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 786ms
cp: supertokens-core/build/libs/*: No such file or directory
cp: supertokens-core/cli/build/libs/*: No such file or directory
cp: supertokens-core/downloader/build/libs/*: No such file or directory
cp: supertokens-core/ee/build/libs/*: No such file or directory

Building supertokens-plugin-interface...

FAILURE: Build failed with an exception.

* What went wrong:
Project 'supertokens-plugin-interface' not found in root project 'supertokens-root'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 796ms
cp: supertokens-plugin-interface/build/libs/*: No such file or directory
mkdir: temp: File exists
Test environment started! Leave this script running while running tests.
^CTesting environment destroyed.
but if I do
ls
in
supertokens-root
folder I can see both`core` and
plugin-interface
Copy code
CHANGELOG.md            loadModules
CODE_OF_CONDUCT.md        modules.txt
README.md            runCore
build.gradle            settings.gradle
docker                startTestEnv
docker-compose.yml        startTestingEnv
gitStatus            supertokens-core
gradle                supertokens-plugin-interface
gradlew                utils
jre
r
whats the contents of modules.txt file?
z
// put module name like ,,(if contributing with a forked$ core,master plugin-interface,master sqlite-plugin,master
r
hmm. This seems about rigth
have you run
./loadModules
before running
./startTestingEnv —wait
?
z
no, it was not written in contribution guide After trying
Copy code
./loadModules

fatal: Unable to mark file .idea/runConfigurations/CLI_Main.xml
fatal: destination path 'supertokens-core' already exists and is not an empty directory.
fatal: destination path 'supertokens-plugin-interface' already exists and is not an empty directory.
@rp_st can we have 10 min call if u have time so that it can be resolved fast
r
so this output is expected.
Can you try ./startTestingEnv —wait
 now?
also, it's there in the contributing guide 🙂
z
Sorry my mistake actually I manually copied these folders to supertokens-roo after cloning respective repos
r
no worries.
z
Finally build is successful Thanks
6 Views